﻿﻿using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Module.Statistical.json
{
    public partial class getJson : System.Web.UI.Page
    {
        JsonBLL bll = new JsonBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                json(Request["jsontype"], Request["shopid"]);
            }
        }
        private void json(string jsontype, string shopid)
        {
            string rjson = "";
            switch (jsontype.Trim())
            {
                case "MonthSell": //月销售额
                    rjson = bll.GetOrderMoney(shopid);
                    break;
                case "MonthOrder"://月订单量
                    rjson = bll.GetNum(shopid);
                    break;
                case "MonthNum"://月客户数
                    rjson = "月客户数";
                    break;
            }
            Response.Write(rjson);
        }
    }
}